﻿using LightWadf.Analyzer;
using LightWadf.Result;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace LightWadf.Handler
{
    class StaticFileHandler : IHttpHandler
    {
        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            FileResult file = new FileResult(context.Request.Path);
            new DefaultResultAnalyzer().Parse(file, context);
        }
    }
}
